﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using TyNetCoreBlog.Models.Entities;
using TyNetCoreBlog.Repository.RepositoryBase;

namespace TyNetCoreBlog.Repository
{
    public interface ICategoryRepository : IRepositoryBase<Category>, IRepositoryBase2<Category, int>
    {
        /// <summary>
        /// 名称是否存在
        /// </summary>
        /// <param name="name"></param>
        /// <returns>存在返回true，不存在返回false</returns>
        bool NameIsExits(string name);
    }
}
